package per.wei.diary;

import java.util.Calendar;

import per.wei.diary.entity.MyDiary;
import per.wei.diary.entity.MyDiaryContent;
import per.wei.diary.handler.MyDiaryPersistBySqlite;
import per.wei.diary.utils.MyCalendar;

/**
 * Hello world!
 *
 */
public class AppEntry 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        MyCalendar.printCalendar(MyCalendar.getCalendarByYearMonth(2021, 11));
        MyDiaryPersistBySqlite myDiaryPersistBySqlite = new MyDiaryPersistBySqlite();
        MyDiary myDiary = new MyDiary();
        MyDiaryContent myDiaryContent = new MyDiaryContent();
        myDiary.setMyDiaryContent(myDiaryContent);
        myDiaryContent.setDiaryText("test"+ Calendar.getInstance().toString());
        myDiaryPersistBySqlite.insert(myDiary);
    }
}
